home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 6
/
CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso
/
cucd
/
online
/
fidonetts
/
3csrc.lzh
/
3aerror.c
next >
Wrap
C/C++ Source or Header
|
1992-05-02
|
605b
|
36 lines
/*
* 3aerror.c
* code to display errors
* Public Domain
*/
#include <stdio.h>
#include <errno.h>
#include "3mail.h"
void error3a (int error) {
/* display an error message to stdout */
char *errs[] = {
"No error",
"Out of memory",
"Open error",
"Read error",
"Bad pkt header",
"Bad msg header",
"Not a type 3 ASCII pkt",
"Write error",
"Seek error",
"End of pkt"
};
if(error > MAXERR3) {
printf("\nERROR: Unknown (#%d)\n",error);
}
else {
printf("\nERROR: %s (errno = %d)\n",errs[error],errno);
}
}